<template>
	<view class="myCard">
		<view class="listItem y-c">
			<view class="item_top y-c ">
				<view class="item_top_row x-bc title">
					<view>{{details.title}}</view>
				</view>
			</view>
			<view class="item_bot y-c border">
				<view class="item_top_row x-bc mb-1 mt-1">
					<view class="next">{{details.createtime}}</view>
				</view>
			</view>
			<view class="item_bot y-c">
				{{details.info}}
			</view>
		</view>
	</view>
</template>

<script>
	import {
		details
	} from '@/request/api.js'
	export default {
		data() {
			return {
				details: {
					info:'',
					title:'',
					createtime:''
				}
			}
		},
		onLoad(res) {
			console.log(res, 55)
			this.getDetails(res.id)
		},
		methods: {
			async getDetails(id) {
				let res = await details({
					id
				})
				this.details = res.data
				console.log(this.details, 'details')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.myCard {
		padding: 20rpx;

		.circle {
			width: 6px;
			height: 6px;
			background: #FF6666;
		}
		.title{
			    font-size: 32rpx;
			    font-weight: 600;
		}
		.listItem {
			color: #555555;
			border-radius: 20rpx;
			// padding: 20rpx;
			box-sizing: border-box;
			margin-top: 20rpx;

			.item_over {
				text-overflow: ellipsis;
				white-space: nowrap;
				overflow: hidden;
			}
		}

		.item_top_row {
			// padding-bottom:20rpx;
		}

		.border {
			border-bottom: 0.5rpx solid rgba(217, 217, 217, 0.6);

		}

		.item_bot {
			margin-top: 20rpx;
			padding-bottom: 20rpx;

			.next {
				color: #BABABA;
			}

			.image {
				width: 116rpx;
				height: 100rpx;
			}
		}

	}
</style>